package org.zjh.controller.listener;

import org.zjh.utils.VerificationUtil;
import org.zjh.view.ui.GameUi;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

/**
 * 验证码监听器
 */
public class VerificationLis extends MouseAdapter {


    @Override
    public void mouseClicked(MouseEvent e) {
        //点击验证码标签 刷新验证码
        GameUi.loginFrame.getLoginPanel().getVerificationCodeLabel().setText(VerificationUtil.generateRandomVerificationCode());
    }
}
